﻿@model IEnumerable<PessModel.Track>

@{
    ViewBag.Title = "Track Index";
}

<h2>Track</h2>
<div id="operate">
    @Html.ActionLink("New", "Create")&#8195;@Html.ActionLink("Back", "SystemSettings", "Home")

</div>
<div class="displayConScroe">
    <table>
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.Title)
            </th>
            <th>
                @*@Html.DisplayNameFor(model => model.Activity.Name)*@Event
            </th>
            <th></th>
        </tr>

        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.Title)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Activity.Name)
                </td>
                <td>
                    @Html.ActionLink("Edit", "Edit", new { id = item.ID }) |
                    @Html.ActionLink("Details", "Details", new { id = item.ID }) |
                    @Html.ActionLink("Delete", "Delete", new { id = item.ID })
                </td>
            </tr>
        }

    </table>
</div>
